Fibonacci connection between Huffman codes and Wythoff array
نویسنده
چکیده
A non-decreasing sequence of positive integer weights P = {p1, . . . , p2, pn} is called k-ordered if an intermediate sequence of weights produced by Huffman algorithm for initial sequence P on i-th step satisfies the following conditions: p (i) 2 = p (i) 3 , i = 0, k; p (i) 2 < p (i) 3 , i = k + 1, n − 3. Let T be a binary tree of size n and M = M(T ) be a set of such sequences of positive integer weights that the tree T is the Huffman tree of P (|P | = n). A sequence Pmin of n positive integer weights is called a minimizing sequence of the binary tree T in class M(Pmin ∈ M) if Pmin produces the minimal Huffman cost of the tree T over all sequences from M , i.e., E(T, Pmin) ≤ E(T, P ) ∀P ∈ M . Fibonacci related connection between minimizing k-ordered sequences of the maximum height Huffman tree and the Wythoff array [Sloane, A035513] has been proved. Let Mn,k (k = 0, n − 3) denote the set of all k-ordered sequences of size n for which the Huffman tree has maximum height. Let F (i) denote i-th Fibonacci number. Theorem: A minimizing k-ordered sequence of the maximum height Huffman tree in class Mn,k (k = 0, n − 3) is Pminn,k = {p1, p2, . . . , pn}, where p1 = 1, p2 = F (1), . . . , pk+2 = F (k + 1), pk+3 = F (k + 2) = wF (k+2),0, pk+4 = wF (k+2),1, pk+5 = wF (k+2),2, . . . , pn = wF (k+2),n−k−3; wi,j is (i, j)th element of the Wythoff array. The cost of Huffman trees for those sequences has been computed. Several examples of minimizing ordered sequences for Huffman codes are shown. 1 Main Conceptions and Terminology 1.1 Binary Trees A (strictly) binary tree is an oriented ordered tree where each nonleaf node has exactly two children (siblings). A binary tree is called elongated if at least one of any two sibling nodes is a leaf. An elongated binary tree of size n has maximum height among all binary trees of size n. An elongated binary tree is called left− sided if the right node in each pair of sibling nodes is a leaf. A binary tree is called labeled if a certain positive integer (weight) is set in correspondence with each leaf. 1. Main Conceptions and Terminology Size of a tree is the total number of leaves of this tree. Definition. Let T be a binary tree with positive weights P = {p1, p2, . . . , pn} at its leaf nodes. The weighted external path length of T is
منابع مشابه
A Fibonacci Property of Wythoff Pairs
In this paper we point out another of those fascinating "coincidences" which are so characteristically associated with the Fibonacci numbers. It occurs in relation to the so-called safe pairs (an, bn) for Wythoffs Nim [1 , 2, 3 ] . These pairs have been extensively analyzed by Carlitz, Scoville and Hoggatt in their researches on Fibonacci representations [4, 5, 6, 7] , a context unrelated to th...
متن کاملThe Alpha and the Omega of the Wythoff Pairs
The Wythoff number pairs have been much discussed in the literature on Fibonacci integers (see [1] for references up to 1978). And in [2] and [3] M. Bicknell-Johnson treats generalizations of Wythoff numbers which provide number triples with many interesting properties. In this paper we present three different ways to generate the Wythoff pairs, and, with some trepidation in view of the extent ...
متن کاملEntropy and Average Cost of AUH Codes
In this paper we address the class of anti-uniform Huffman (AUH) codes, named also unary codes, for sources with finite and infinite alphabet, respectively. Geometric, quasi-geometric, Fibonacci, exponential, Poisson, and negative binomial distributions lead to anti – uniform sources for some ranges of their parameters. Huffman coding of these sources results in AUH codes. We prove that as resu...
متن کاملTight Bounds on the Average Length, Entropy, and Redundancy of Anti-Uniform Huffman Codes
In this paper we consider the class of anti-uniform Huffman codes and derive tight lower and upper bounds on the average length, entropy, and redundancy of such codes in terms of the alphabet size of the source. The Fibonacci distributions are introduced which play a fundamental role in AUH codes. It is shown that such distributions maximize the average length and the entropy of the code for a ...
متن کاملComplementary Equations and Wythoff Sequences
The lower Wythoff sequence a = (a(n)) and upper Wythoff sequence b = (b(n)) are solutions of many complementary equations f(a, b) = 0. Typically, f(a, b) involves composites such as a(a(n)) and a(b(n)), and each such sequence is treated as a binary word (e.g., aa and ab). Conversely, each word represents a sequence and, as such, is a linear combination of a, b, and 1, in which the coefficients ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره cs.DM/0410013 شماره
صفحات -
تاریخ انتشار 2004